package com.haixiaoke.saas.contract.domain;

import com.haixiaoke.saas.common.annotation.Excel;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;

/**
 * 房屋委托信息对象 biz_house_commission
 *
 * @author xiaolong
 * @date 2024-06-06
 */
public class HouseCommission extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 房屋委托信息id
     */
    private Long houseCommissionId;

    /**
     * 业主信息id
     */
    @Excel(name = "业主信息id")
    @NotNull(message = "业主信息id不能为空")
    private Long proprietorId;

    /**
     * 开户人
     */
    @Excel(name = "开户人")
    @NotNull(message = "请填写开户人")
    private String accountHolder;

    /**
     * 银行账户
     */
    @Excel(name = "银行账户")
    @NotNull(message = "请填写银行账户")
    private String bankAccount;

    /**
     * 开户银行
     */
    @Excel(name = "开户银行")
    @NotNull(message = "请填写开户银行")
    private String bankName;

    /**
     * 银行支行
     */
    @Excel(name = "银行支行")
    @NotNull(message = "请填写银行支行")
    private String bankBranch;

    /**
     * 逻辑删除标志(0代表存在
     */
    private String delFlag;

    public void setHouseCommissionId(Long houseCommissionId) {
        this.houseCommissionId = houseCommissionId;
    }

    public Long getHouseCommissionId() {
        return houseCommissionId;
    }

    public void setProprietorId(Long proprietorId) {
        this.proprietorId = proprietorId;
    }

    public Long getProprietorId() {
        return proprietorId;
    }

    public void setAccountHolder(String accountHolder) {
        this.accountHolder = accountHolder;
    }

    public String getAccountHolder() {
        return accountHolder;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankBranch(String bankBranch) {
        this.bankBranch = bankBranch;
    }

    public String getBankBranch() {
        return bankBranch;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("houseCommissionId", getHouseCommissionId())
                .append("proprietorId", getProprietorId())
                .append("accountHolder", getAccountHolder())
                .append("bankAccount", getBankAccount())
                .append("bankName", getBankName())
                .append("bankBranch", getBankBranch())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
